file(GLOB_RECURSE host_archive_restore_srcs *.cpp)

add_library(host_archive_restore_obj
    OBJECT
    ${host_archive_restore_srcs}
)

target_include_directories(host_archive_restore_obj
    PRIVATE
    ${MODULE_ROOT_PATH}/src/parser
    ${PLUGIN_ROOT_PATH}
    ${PLUGIN_FRAMEWORK_PATH}/inc/job/
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc
    ${PLUGIN_FRAMEWORK_PATH}/inc/client
    ${PLUGIN_FRAMEWORK_PATH}/inc/common
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc/certificateservice
    ${PLUGIN_SRC_PATH}
    ${PLUGIN_SRC_PATH}/utils/
    ${PLUGIN_SRC_PATH}/common
    ${PLUGIN_SRC_PATH}/component
    ${PLUGIN_SRC_PATH}/component/statistics
    ${PLUGIN_SRC_PATH}/nas_service/nas_share
    ${PLUGIN_BACKUP_PATH}/src
    ${PLUGIN_BACKUP_PATH}/src/model
    ${PLUGIN_BACKUP_PATH}/src/service
    ${PLUGIN_SCANNER_PATH}/localhost_src
    ${PLUGIN_SCANNER_PATH}/localhost_src/service
    ${MODULE_ROOT_PATH}/src
    ${MODULE_ROOT_PATH}/src/parser
    ${MODULE_ROOT_PATH}/src/libsmb_ctx
    ${MODULE_ROOT_PATH}/src/libnfs_ctx
    ${MODULE_ROOT_PATH}/src/threadpool
    PUBLIC
    ${PLUGIN_FRAMEWORK_PATH}/dep/agent_sdk/include
    ${PLUGIN_ROOT_PATH}
    ${MODULE_ROOT_PATH}
    ${PLUGIN_BACKUP_PATH}/src/engines
    ${OPEN_SRC_PATH}/curl_rel/include
    ${PLUGIN_SRC_PATH}/nas_service/nas_share/common
)

target_link_libraries(host_archive_restore_obj
    PRIVATE
    common_dep
    scanner_interface
    interface_thrift_func
    nas_share_common_obj
)
